package com.youyou.entity;

import com.youyou.annotation.FieldCompare;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.jws.HandlerChain;
import java.math.BigDecimal;

/**
 * @author:Lau
 * @create: 2023-01-31 09:53
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
//@Accessors(chain = true)
public class User {

    @FieldCompare(chineseName = "用户id")
    Integer userId;
    @FieldCompare(chineseName = "用户名称")
    String userName;
    @FieldCompare(chineseName = "性别",properties = "1:男,0:女")
    String sex;
    @FieldCompare(chineseName = "年龄")
    Integer age;
    @FieldCompare(chineseName = "工资")
    BigDecimal salary;

    @Override
    public String toString() {
        return "User{" + "userId=" + userId + ", userName='" + userName + '\'' + ", sex='" + sex + '\'' + ", age=" + age
                + ", salary=" + salary + '}'+'\n';
    }
}
